<template>
  <div>
    <button @click="test">接口按钮</button>
    <img src="https://images.669pic.com/ele_banner2/b9ab7c690805022334465fdfea160ca7.jpg" alt="">
  </div>
</template>

<script>
import Axios from 'axios';
Axios.defaults.baseURL = '/api'
export default {
  name: 'App',
  data () {
    return {
      // domain: 'http://wdlytest.hdt.cosmoplat.com/api'
    }
  },
  created() {
    console.log('vue2.0写法 created');
  },
  mounted() {
    console.log(this.$route);
  },
  methods: {
    close() {
      console.log('close');
    },
    test () {
      Axios({
        method: "get",
        url: "/system/login/iam/ssoInfo"
      }).then((res) => {
        console.log(res)
      })
    }
  },
};
</script>

<style>
/* #app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
} */
</style>
